var videow = 960;
var videoh = 540;
var frameb = 0;

function geturl(vid,jpurl,zhurl) {
    return "<link href='http://drive.google.com/uc?id=0B0uyVFsMJCdbU0FOejZVR0ZIdEk' rel='stylesheet' type='text/css' /><script src='http://drive.google.com/uc?id=0B0uyVFsMJCdbbE56SGVHa2hqYTA'></script><video id='example_video_1' class='video-js vjs-default-skin' controls preload='none' width="+videow+" height="+videoh+" poster='' data-setup='{}'><source src='https://googledrive.com/host/"+vid+"' type='video/webm' />"+jptracktag(jpurl)+zhtracktag(zhurl)+"</video>";
}
function jptracktag(jpurl) {
    if (jpurl !== undefined) {
        return "<track kind='captions' src='https://googledrive.com/host/"+jpurl+"' srclang='ja' label='日本語' default></track>";
    } else {
        return "";
    }
}
function zhtracktag(zhurl) {
    if (zhurl !== undefined) {
        return "<track kind='captions' src='https://googledrive.com/host/"+zhurl+"' srclang='zh' label='中国語'></track>";
    } else {
        return "";
    }
}
//"<video width="+videow+" height="+videoh+" controls><source src=\"https://googledrive.com/host/"+vid+"\" type='video/mp4'/></video>";
//    <track kind=\"captions\" src=\"https://googledrive.com/host/"+jasubid+"\" srclang=\"ja\" label=\"Japanese\" default></track>
 //  <track kind=\"https://googledrive.com/host/"+zhsubid+"\" srclang=\"zh\" label=\"Chinese\"></track>
 //0B0uyVFsMJCdbeW12ZUc3VVRfWUk